package org.linphone.sub.send;

import com.xuhao.android.libsocket.sdk.bean.ISendable;

import org.linphone.sub.utils.CRCUtil;
import org.linphone.sub.utils.SocketUtil;

/**
 * Created by Xiang on 2018/5/28.
 */

public class SendStartBroadData implements ISendable {

	public byte[] bb = new byte[8];
	public SendStartBroadData(){

		bb[0] = (byte) 0xfb;
		bb[1] = (byte) 0xe3;
		bb[2] = SocketUtil.int2bytes(10)[0];
		bb[3] = SocketUtil.int2bytes(10)[1];
		bb[4] = 0x01;
		bb[5] = 0x00;
		bb[6] = 0x00;
		bb[7] = (byte) 0xfd;
	}

	@Override
	public byte[] parse() {
		return CRCUtil.toCrc16(bb);
	}

}
